package com.atgion.service;


import com.atgion.service.anno.EnableUserTokenFeignInterceptor;
import com.atgion.service.anno.EnableUserWebMvcConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@MapperScan("com.atgion.service.mapper")
//@ComponentScan(basePackages = {"com.atgion"}) // 整合swagger并扫描当前模块
@SpringBootApplication
@EnableFeignClients            //扫描远程调用
@EnableUserTokenFeignInterceptor  //用于解决feign远程调用时，token传递问题
@EnableUserWebMvcConfiguration // 拦截器用于获取用户信息  (微服务)
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}